//package com.example.demo;
//import com.example.demo.dao.EmployeeRepository;
//import com.example.demo.po.Employee;
//import lombok.extern.slf4j.Slf4j;
//
//import org.springframework.boot.CommandLineRunner;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//@Slf4j
//class LoadDatabase {
//
//    @Bean
//    CommandLineRunner initDatabase(EmployeeRepository repository) {
//        return args -> {
//            log.info("Preloading " + repository.save(new Employee("Bilbo Baggins", "burglar")));
//            log.info("Preloading " + repository.save(new Employee("Frodo Baggins", "thief")));
//        };
//    }
//}
